package com.sam.wang.springframework.bean;

/**
 * @author wangchen
 * @version 1.0
 * @date 2021/9/1 14:10
 **/
public class Account {

    private User user;

    private String account;

    private String password;

    public void print() {
        System.out.println(this.account +":"+ this.password + ";"+ this.user.getName()+ ":"+this.user.getAge());
    }

    public Account() {
        super();
    }

    public Account(User user, String account, String password) {
        this.user = user;
        this.account = account;
        this.password = password;
    }

}
